import React from "react";
import {Group, Stack, Text} from "@mantine/core";
import {IpdTableProvider} from "./context";
import {Table} from "./Table";
import {ButtonAdd} from "./ButtonAdd";
import {ButtonCompare} from "./ButtonCompare";

export function IpdTable() {
  return (
    <IpdTableProvider>
      <Stack>
        <Group justify="space-between">
          <Text size="sm" fw={500}>
            {"方案列表"}
          </Text>
          <Group>
            <ButtonCompare />
            <ButtonAdd />
          </Group>
        </Group>
        <Table />
      </Stack>
    </IpdTableProvider>
  );
}
